package com.danjinwulian.common.core.domain.entity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.danjinwulian.common.annotation.Excel;
import com.danjinwulian.common.core.domain.BaseEntity;

/**
 * 设备日志对象 iot_device_log
 * 
 * @author ken.h
 * @date 2023-03-20
 */
public class IotDeviceLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 设备日志id */
    private Long deviceLogId;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 类型 */
    @Excel(name = "类型")
    private String logType;

    /** 操作 */
    @Excel(name = "操作")
    private String logOperate;

    /** 状态（200成功 其他（1910、1911、427等）失败） */
    @Excel(name = "状态", readConverterExp = "2=00成功,其=他（1910、1911、427等")
    private String status;

    /** 异常信息 */
    @Excel(name = "异常信息")
    private String message;

    @Excel(name = "公寓名称")
    private String hotelName;

    @Excel(name = "房间名称")
    private String roomName;

    public void setDeviceLogId(Long deviceLogId) 
    {
        this.deviceLogId = deviceLogId;
    }

    public Long getDeviceLogId() 
    {
        return deviceLogId;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setLogType(String logType) 
    {
        this.logType = logType;
    }

    public String getLogType() 
    {
        return logType;
    }
    public void setLogOperate(String logOperate) 
    {
        this.logOperate = logOperate;
    }

    public String getLogOperate() 
    {
        return logOperate;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setMessage(String message) 
    {
        this.message = message;
    }

    public String getMessage() 
    {
        return message;
    }

    public String getHotelName() {
        return hotelName;
    }

    public void setHotelName(String hotelName) {
        this.hotelName = hotelName;
    }

    public String getRoomName() {
        return roomName;
    }

    public void setRoomName(String roomName) {
        this.roomName = roomName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deviceLogId", getDeviceLogId())
            .append("deviceName", getDeviceName())
            .append("logType", getLogType())
            .append("logOperate", getLogOperate())
            .append("status", getStatus())
            .append("message", getMessage())
            .append("createTime", getCreateTime())
            .toString();
    }
}
